import request from '@/utils/request';
import { getUserInfo } from '@/utils/auth';
// 获取用户详情
export function getUserDetailApi(objectId) {
  let url = process.env.VUE_APP_SYS_SERVICE + 'api/sysUser/getUserDetails';
  return request({
    url: url,
    method: 'get',
    params: { objectId }
  });
}

// 组织架构
export function getSysStructsTreeApi() {
  return request({
    url: process.env.VUE_APP_SYS_SERVICE + 'api/sysStruct/getSysStructsTree',
    method: 'get'
  });
}

// 查询字典
export function getDictionaryDataListApi(postBody) {
  postBody.userId = getUserInfo().userId;
  return request({
    url: process.env.VUE_APP_SYS_SERVICE + 'api/sysEnumDictionary/getSysEnumDictionaryListByPage',
    method: 'post',
    data: postBody
  });
}

